//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.jtny.nytb.equipment.enums;

public enum DataParamTypeEnum {
    REAL_TIME(1, "实时量"),
    ACCUMULATE(2, "累计量");

    private final Integer type;
    private final String name;

    public static DataParamTypeEnum getByType(Integer type) {
        DataParamTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            DataParamTypeEnum value = var1[var3];
            if (value.getType().equals(type)) {
                return value;
            }
        }

        return null;
    }

    public static DataParamTypeEnum getByName(String name) {
        DataParamTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            DataParamTypeEnum value = var1[var3];
            if (value.getName().equals(name)) {
                return value;
            }
        }

        return null;
    }

    private DataParamTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }
}
